package com.tjsinfo.tjsoa.mail.vo;

import java.util.Date;
import java.util.HashSet;
import java.util.Set;

/**
 * TjsFoldMail entity.
 * 
 * @author MyEclipse Persistence Tools
 */

public class TjsFoldMail implements java.io.Serializable {

	// Fields

	private String tjsmailId;
	private TjsEmailFolder tjsEmailFolder;
	private String tjsmailTitle;
	private String tjsmailValue;
	private Date tjsmailDatetime;
	private Integer tjsmailType;
	private String tjsmailUsername;
	private Integer tjsmailStart;
	private Integer tjsmailRead;
	private Integer tjsmailTag;
	private Integer sortid;
	private Set tjsFoldEmailAnnexes = new HashSet(0);

	// Constructors

	public String getTjsmailUsername() {
		return tjsmailUsername;
	}

	public void setTjsmailUsername(String tjsmailUsername) {
		this.tjsmailUsername = tjsmailUsername;
	}

	/** default constructor */
	public TjsFoldMail() {
	}

	/** minimal constructor */
	public TjsFoldMail(TjsEmailFolder tjsEmailFolder, String tjsmailTitle,
			Date tjsmailDatetime, Integer tjsmailType, Integer tjsmailStart,
			Integer tjsmailRead, Integer tjsmailTag) {
		this.tjsEmailFolder = tjsEmailFolder;
		this.tjsmailTitle = tjsmailTitle;
		this.tjsmailDatetime = tjsmailDatetime;
		this.tjsmailType = tjsmailType;
		this.tjsmailStart = tjsmailStart;
		this.tjsmailRead = tjsmailRead;
		this.tjsmailTag = tjsmailTag;
	}

	/** full constructor */
	public TjsFoldMail(TjsEmailFolder tjsEmailFolder, String tjsmailTitle,
			String tjsmailValue, Date tjsmailDatetime, Integer tjsmailType,
			String tjsmailUsername, Integer tjsmailStart, Integer tjsmailRead,
			Integer tjsmailTag, Set tjsFoldEmailAnnexes) {
		this.tjsEmailFolder = tjsEmailFolder;
		this.tjsmailTitle = tjsmailTitle;
		this.tjsmailValue = tjsmailValue;
		this.tjsmailDatetime = tjsmailDatetime;
		this.tjsmailType = tjsmailType;
		this.tjsmailUsername = tjsmailUsername;
		this.tjsmailStart = tjsmailStart;
		this.tjsmailRead = tjsmailRead;
		this.tjsmailTag = tjsmailTag;
		this.tjsFoldEmailAnnexes = tjsFoldEmailAnnexes;
	}

	// Property accessors

	public String getTjsmailId() {
		return this.tjsmailId;
	}

	public void setTjsmailId(String tjsmailId) {
		this.tjsmailId = tjsmailId;
	}

	public TjsEmailFolder getTjsEmailFolder() {
		return this.tjsEmailFolder;
	}

	public void setTjsEmailFolder(TjsEmailFolder tjsEmailFolder) {
		this.tjsEmailFolder = tjsEmailFolder;
	}

	public String getTjsmailTitle() {
		return this.tjsmailTitle;
	}

	public void setTjsmailTitle(String tjsmailTitle) {
		this.tjsmailTitle = tjsmailTitle;
	}

	public String getTjsmailValue() {
		return this.tjsmailValue;
	}

	public void setTjsmailValue(String tjsmailValue) {
		this.tjsmailValue = tjsmailValue;
	}

	public Date getTjsmailDatetime() {
		return this.tjsmailDatetime;
	}

	public void setTjsmailDatetime(Date tjsmailDatetime) {
		this.tjsmailDatetime = tjsmailDatetime;
	}

	public Integer getTjsmailType() {
		return this.tjsmailType;
	}

	public void setTjsmailType(Integer tjsmailType) {
		this.tjsmailType = tjsmailType;
	}



	public Integer getTjsmailStart() {
		return this.tjsmailStart;
	}

	public void setTjsmailStart(Integer tjsmailStart) {
		this.tjsmailStart = tjsmailStart;
	}

	public Integer getTjsmailRead() {
		return this.tjsmailRead;
	}

	public void setTjsmailRead(Integer tjsmailRead) {
		this.tjsmailRead = tjsmailRead;
	}

	public Integer getTjsmailTag() {
		return this.tjsmailTag;
	}

	public void setTjsmailTag(Integer tjsmailTag) {
		this.tjsmailTag = tjsmailTag;
	}

	public Set getTjsFoldEmailAnnexes() {
		return this.tjsFoldEmailAnnexes;
	}

	public void setTjsFoldEmailAnnexes(Set tjsFoldEmailAnnexes) {
		this.tjsFoldEmailAnnexes = tjsFoldEmailAnnexes;
	}
	
	public void addTjsFoldMailAnnex(TjsFoldEmailAnnex tjsFoldEmailAnnex)
	{
		tjsFoldEmailAnnexes.add(tjsFoldEmailAnnex);
		tjsFoldEmailAnnex.setTjsFoldMail(this);
	}

	public Integer getSortid() {
		return sortid;
	}

	public void setSortid(Integer sortid) {
		this.sortid = sortid;
	}

}